<template>
	<view>
		<view class="" v-for="(item, index) in pageList" :key="index">
			<view class="station">{{ item.stationName }}</view>
			<view class="particulars">
				<view class="">预售期: {{ item.preSaleDay }}天</view>
				<view class="">售票时间: {{ item.startTime }}-{{ item.endTime }}</view>
				<view class="">取票方式: {{ item.printType }}</view>
				<view class="">车站地址: {{ item.address }}</view>
				<view class="">{{ item.phones }}</view>
				<view class="">
					网上退票:
					<text class="refund">{{ isCanRefund }}</text>
				</view>
				<view class="hint">温馨提示: 具体信息以车站公布为准。</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			pageList: [],
			isCanRefund: ''
		};
	},
	onLoad(options) {
		const that = this;
		var list = JSON.parse(options.id);
		if (list.isCanRefund == true) {
			this.isCanRefund = '支持';
		} else {
			this.isCanRefund = '不支持';
		}
		this.pageList.push(list);
	},
	methods: {}
};
</script>

<style scoped>
.particulars {
	margin: 20upx;
	color: #999999;
	font-size: 35upx;
}
.hint {
	color: #ff9900;
}
.station {
	height: 70upx;
	color: #ffffff;
	font-size: 35upx;
	font-weight: bold;
	line-height: 70upx;
	text-align: center;
	background-color: #01a1ea;
}
.refund {
	color: #ff9900;
}
</style>
